const express = require('express');
const cors = require('cors');

const app = express();

app.use(cors());

app.get('/', (req, res, next) => {
  res.send(JSON.stringify({
    code: 0,
    msg: 'success'
  }));
});

app.listen(10000, () => {
  console.log(`express cors test middleware start`);
})